package com.hsurosy.hsuchain.nft.base.statemachine;

/**
 * 状态机接口
 *
 * @Author Hsu琛君珩
 * @Date 2024-10-04 18:50
 * @Description
 * @Version: v1.0.0
 */
public interface StateMachine<STATE, EVENT> {

    /**
     * 执行状态转移
     *
     * @param state 当前状态
     * @param event 触发事件
     * @return 转移后的目标状态
     */
    public STATE transition(STATE state, EVENT event);
}
